package com.bing.beans;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by kaibb on 14-8-24.
 */

public class SearchPK implements Serializable {



    private String searchContent;
    private Date sTime;


    public SearchPK() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SearchPK searchPK = (SearchPK) o;

        if (sTime != null ? !sTime.equals(searchPK.sTime) : searchPK.sTime != null) return false;
        if (searchContent != null ? !searchContent.equals(searchPK.searchContent) : searchPK.searchContent != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = searchContent != null ? searchContent.hashCode() : 0;
        result = 31 * result + (sTime != null ? sTime.hashCode() : 0);
        return result;
    }
}
